Big O Notation - Calculating Time Complexity